[cfe-commits] r126152 - /cfe/trunk/lib/Basic/Targets.cpp
Daniel Dunbar
daniel at zuster.org
Mon Feb 21 15:12:52 PST 2011
Author: ddunbar
Date: Mon Feb 21 17:12:51 2011
New Revision: 126152
URL: http://llvm.org/viewvc/llvm-project?rev=126152&view=rev
Log:
Targets/Darwin: mcount name on Darwin needs to be unmangled.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=126152&r1=126151&r2=126152&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Feb 21 17:12:51 2011
@@ -152,6 +152,7 @@
DarwinTargetInfo(const std::string& triple) :
OSTargetInfo<Target>(triple) {
this->TLSSupported = llvm::Triple(triple).getDarwinMajorNumber() > 10;
+ this->MCountName = "\01mcount";
}
virtual std::string isValidSectionSpecifier(llvm::StringRef SR) const {
More information about the cfe-commits
mailing list