summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-28 19:27:37 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-28 19:27:37 +0000
commit966e32066401d5fe3871a9b70cf8354f1f71c717 (patch)
tree3675083ab504bb67408f03a4e969cfa7b770fa62 /clang/lib/CodeGen/CodeGenPGO.cpp
parentda52f8c28cf16deab48f6b638b106b4362ecba70 (diff)
downloadbcm5719-llvm-966e32066401d5fe3871a9b70cf8354f1f71c717.tar.gz
bcm5719-llvm-966e32066401d5fe3871a9b70cf8354f1f71c717.zip
Use constexpr again, this time portably
Responding to Justin's review of r205025. llvm-svn: 205037
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp
index 81af8cde82c..ac6b7bca40f 100644
--- a/clang/lib/CodeGen/CodeGenPGO.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud