]> granicus.if.org Git - clang/commitdiff
Per PR2773, define __USER_LABEL_PREFIX__ for x86-32 Linux and Windows.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 6 Sep 2008 01:37:51 +0000 (01:37 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 6 Sep 2008 01:37:51 +0000 (01:37 +0000)
If you're on some other platform, the correct definition for this macro
would be appreciated; to find the correct definition, just run the
following command:

echo | gcc -dM -E - | grep USER_LABEL_PREFIX

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55869 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index dfaef75980bea745d1424b489e998bd9c0a877d7..53a192e6eeccdcb55dcff1cd44c8d0bfcdb81b2a 100644 (file)
@@ -698,6 +698,7 @@ public:
   virtual void getTargetDefines(std::vector<char> &Defines) const {
     X86_32TargetInfo::getTargetDefines(Defines);
     getLinuxDefines(Defines);
+    Define(Defines, "__USER_LABEL_PREFIX__", "");
   }
 };
 } // end anonymous namespace
@@ -724,6 +725,7 @@ public:
     Define(Defines, "WINNT");
     Define(Defines, "_X86_");
     Define(Defines, "__MSVCRT__");
+    Define(Defines, "__USER_LABEL_PREFIX__", "_");
   }
 };
 } // end anonymous namespace