[PATCH] [Patch] Temporarily revert test to prepare for LLVM -fprofile-instr-generate= fix

Teresa Johnson tejohnson at google.com
Tue May 12 14:10:03 PDT 2015


I see. In that case here are the two patches. I don't have commit
access, if they look ok can someone commit for me?

Commit log for both can be:
------
Update name of compiler-rt routine for setting filename under
-fprofile-instr-generate= option to
__llvm_profile_override_default_filename which is the correct profile
library routine.

Patch by Teresa Johnson.
------

Thanks,
Teresa



On Tue, May 12, 2015 at 1:55 PM, Eric Christopher <echristo at gmail.com> wrote:
> Should just commit quickly. No worries about a breakage of a few minutes.
>
>
> On Tue, May 12, 2015, 1:53 PM Teresa Johnson <tejohnson at google.com> wrote:
>>
>> Hi echristo, bogner,
>>
>> I apparently forgot to update the clang and llvm patches before
>> they were committed for me with the new name of the compiler-rt library
>> supporting -fprofile-instr-generate=, which was changed during the review
>> process. This wasn't caught by this test as it doesn't link and is
>> consistent
>> with the library call being inserted by llvm.
>>
>> I want to temporarily revert this test so that it doesn't break when I
>> make
>> the llvm change to call the correct library routine
>> (__llvm_profile_override_default_filename), then will send a patch to add
>> itx
>> back with the correct name.
>>
>> Tested via ninja clang-test
>>
>> http://reviews.llvm.org/D9717
>>
>> Files:
>>   test/Profile/c-generate.c
>>
>> Index: test/Profile/c-generate.c
>> ===================================================================
>> --- test/Profile/c-generate.c
>> +++ /dev/null
>> @@ -1,10 +0,0 @@
>> -// Check that the -fprofile-instr-generate= form works.
>> -// RUN: %clang_cc1 -main-file-name c-generate.c %s -o - -emit-llvm
>> -fprofile-instr-generate=c-generate-test.profraw | FileCheck %s
>> -
>> -// CHECK: private constant [24 x i8] c"c-generate-test.profraw\00"
>> -// CHECK: call void @__llvm_profile_set_filename_env_override(i8*
>> getelementptr inbounds ([24 x i8], [24 x i8]* @0, i32 0, i32 0))
>> -// CHECK: declare void @__llvm_profile_set_filename_env_override(i8*)
>> -
>> -int main(void) {
>> -  return 0;
>> -}
>>
>> EMAIL PREFERENCES
>>   http://reviews.llvm.org/settings/panel/emailpreferences/



-- 
Teresa Johnson | Software Engineer | tejohnson at google.com | 408-460-2413
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/9817a566/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/9817a566/attachment-0001.bin>


More information about the llvm-commits mailing list