aboutsummaryrefslogtreecommitdiff
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
commitc0c0f70cf196513eadc010bf79d1d3cd00750d85 (patch)
tree9c4331ab0147cd46231ada226e4318b5af98289c
parentdd972f20dc2bd3609d833893e5c6544ac09b59a9 (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55869 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Basic/Targets.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index dfaef75980..53a192e6ee 100644
--- a/lib/Basic/Targets.cpp
+++ b/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