diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-11 17:09:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-11 17:09:54 +0000 |
commit | 9190ffe62e02610a66d624e64e172d0745e00eed (patch) | |
tree | bf46da19064106d6542c28097cd6007ec97728e8 | |
parent | ca6c2b750b738753a7f46cde26e9448217abe8fc (diff) | |
download | bcm5719-llvm-9190ffe62e02610a66d624e64e172d0745e00eed.tar.gz bcm5719-llvm-9190ffe62e02610a66d624e64e172d0745e00eed.zip |
update this to use llvm-config, patch by Jose M. Moya
llvm-svn: 41849
-rwxr-xr-x | llvm/utils/profile.pl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/utils/profile.pl b/llvm/utils/profile.pl index ad0be073c82..f9950f97fea 100755 --- a/llvm/utils/profile.pl +++ b/llvm/utils/profile.pl @@ -62,11 +62,10 @@ my $BytecodeFile = $ARGV[0]; shift @ARGV; -my $LLIPath = `which lli`; -$LLIPath = `dirname $LLIPath`; -chomp $LLIPath; +my $libdir = `llvm-config --libdir`; +chomp $libdir; -my $LibProfPath = $LLIPath . "/../../Debug/lib/profile_rt.so"; +my $LibProfPath = $libdir . "/profile_rt.so"; system "opt -q -f $ProfilePass $BytecodeFile -o $BytecodeFile.inst"; system "lli -fake-argv0 '$BytecodeFile' -load $LibProfPath " . |