]> granicus.if.org Git - clang/commitdiff
Targets/Darwin: mcount name on Darwin needs to be unmangled.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 21 Feb 2011 23:12:51 +0000 (23:12 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 21 Feb 2011 23:12:51 +0000 (23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126152 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index a8198e4ae79e288207cc8e73bcc96da7e8345793..55321f2498efa247c95d08e9fd667265f061a970 100644 (file)
@@ -152,6 +152,7 @@ public:
   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 {