diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-28 19:27:37 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-28 19:27:37 +0000 |
| commit | 1665b62da4b8c62d404236101a217006e931fd39 (patch) | |
| tree | f3642c23c91c4fa5c3b0f014a64bdf534679ed5d /lib/CodeGen/CodeGenPGO.cpp | |
| parent | f6e568cc20d25ad43cb505138f86e12916bb8175 (diff) | |
| download | clang-1665b62da4b8c62d404236101a217006e931fd39.tar.gz clang-1665b62da4b8c62d404236101a217006e931fd39.tar.bz2 clang-1665b62da4b8c62d404236101a217006e931fd39.tar.xz | |
Use constexpr again, this time portably
Responding to Justin's review of r205025.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPGO.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenPGO.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenPGO.cpp b/lib/CodeGen/CodeGenPGO.cpp index 81af8cde82..ac6b7bca40 100644 --- a/lib/CodeGen/CodeGenPGO.cpp +++ b/lib/CodeGen/CodeGenPGO.cpp @@ -815,8 +815,8 @@ namespace { } static void emitRuntimeHook(CodeGenModule &CGM) { - const char *RuntimeVarName = "__llvm_profile_runtime"; - const char *RuntimeUserName = "__llvm_profile_runtime_user"; + LLVM_CONSTEXPR const char *RuntimeVarName = "__llvm_profile_runtime"; + LLVM_CONSTEXPR const char *RuntimeUserName = "__llvm_profile_runtime_user"; if (CGM.getModule().getGlobalVariable(RuntimeVarName)) return; |
