summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-09-06 01:37:51 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-09-06 01:37:51 +0000
commit6565d45b5f2bd86d4464831d8bd5146afa9c03de (patch)
tree8295d6f6b60d4f692cc571265705d4f2b65b26dd /clang/lib/Basic/Targets.cpp
parentd41c7160d05ac9486d3ee1e7f23d2b6459294c36 (diff)
downloadbcm5719-llvm-6565d45b5f2bd86d4464831d8bd5146afa9c03de.tar.gz
bcm5719-llvm-6565d45b5f2bd86d4464831d8bd5146afa9c03de.zip
Per PR2773, define __USER_LABEL_PREFIX__ for x86-32 Linux and Windows.
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 llvm-svn: 55869
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index dfaef75980b..53a192e6eec 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -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
OpenPOWER on IntegriCloud