X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Fprofile.pl;h=f9950f97fea82179c1e22a23b820db1ef18211ac;hb=6c3bfba06ef379ad218811854732e7205ff74438;hp=ad0be073c8295baf130d4ac0dd5a25f31dc8bd6d;hpb=e08fe8d7e52b96824ac77719f0a6ab364242b1e6;p=oota-llvm.git diff --git a/utils/profile.pl b/utils/profile.pl index ad0be073c82..f9950f97fea 100755 --- a/utils/profile.pl +++ b/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 " .