projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba5037
)
update this to use llvm-config, patch by Jose M. Moya
author
Chris Lattner
<sabre@nondot.org>
Tue, 11 Sep 2007 17:09:54 +0000
(17:09 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 11 Sep 2007 17:09:54 +0000
(17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41849
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/profile.pl
patch
|
blob
|
history
diff --git
a/utils/profile.pl
b/utils/profile.pl
index ad0be073c8295baf130d4ac0dd5a25f31dc8bd6d..f9950f97fea82179c1e22a23b820db1ef18211ac 100755
(executable)
--- 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 " .