r205025 - InstrProf: Fix MSVC after r205023
Duncan P. N. Exon Smith
dexonsmith at apple.com
Fri Mar 28 12:34:59 PDT 2014
On 2014 Mar 28, at 12:15, Justin Bogner <mail at justinbogner.com> wrote:
> "Duncan P. N. Exon Smith" <dexonsmith at apple.com> writes:
>> Author: dexonsmith
>> Date: Fri Mar 28 13:22:26 2014
>> New Revision: 205025
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=205025&view=revLog:
>> InstrProf: Fix MSVC after r205023
>>
>> Modified:
>> cfe/trunk/lib/CodeGen/CodeGenPGO.cpp
>>
>> Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.cpp
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.cpp?rev=205025&r1=205024&r2=205025&view=diff==============================================================================
>> --- cfe/trunk/lib/CodeGen/CodeGenPGO.cpp (original)
>> +++ cfe/trunk/lib/CodeGen/CodeGenPGO.cpp Fri Mar 28 13:22:26 2014
>> @@ -815,8 +815,8 @@ namespace {
>> }
>>
>> static void emitRuntimeHook(CodeGenModule &CGM) {
>> - constexpr const char *RuntimeVarName = "__llvm_profile_runtime";
>> - constexpr const char *RuntimeUserName = "__llvm_profile_runtime_user";
>> + const char *RuntimeVarName = "__llvm_profile_runtime";
>> + const char *RuntimeUserName = "__llvm_profile_runtime_user";
>
> You can probably use LLVM_CONSTEXPR from Compiler.h here.
r205037
>> if (CGM.getModule().getGlobalVariable(RuntimeVarName))
>> return;
>>
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list