1
/*******************************************************************************
2
* Copyright (c) 2009 STMicroelectronics.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Xavier Raynaud <xavier.raynaud@st.com> - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.linuxtools.binutils.utils;
13
import java.io.IOException;
15
import org.eclipse.cdt.utils.CPPFilt;
16
import org.eclipse.core.resources.IProject;
19
* c++filt factory for all toolsets.
21
* @author Xavier Raynaud <xavier.raynaud@st.com>
23
public class STCPPFiltFactory {
27
* @return an instance of cppfile for the given cpu type
30
public static CPPFilt getCPPFilt(String cpuType) throws IOException {
31
return getCPPFilt(cpuType, null);
37
* The project to get the path to run cppfilt
38
* @return an instance of cppfile for the given cpu type
41
public static CPPFilt getCPPFilt(String cpuType, IProject project) throws IOException {
42
ISTBinutilsFactory factory = STBinutilsFactoryManager.sharedInstance.getBinutilsFactory(cpuType);
43
return factory.getCPPFilt(project);