aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-01 18:49:30 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-01 18:49:30 +0000
commitbbe8e3eff56ac1d79f3668d706536e3cebe28c18 (patch)
treecd7c3906b00ea96ff4f08e687e0f1da8010da4a0 /lib/Driver/ToolChains.cpp
parent3aea4dac830cb03d883a13ab30c28a3a53beca58 (diff)
Driver/Darwin: Be bug compatible with GCC and ignore -pg on ARM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 561476ecdf..4a9be0ef76 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -918,6 +918,11 @@ const char *Darwin::GetForcedPicModel() const {
return 0;
}
+bool Darwin::SupportsProfiling() const {
+ // Profiling instrumentation is only supported on x86.
+ return getArchName() == "i386" || getArchName() == "x86_64";
+}
+
bool Darwin::SupportsObjCGC() const {
// Garbage collection is supported everywhere except on iPhone OS.
return !isTargetIPhoneOS();