[llvm-commits] [llvm] r41849 - /llvm/trunk/utils/profile.pl

Chris Lattner sabre at nondot.org
Tue Sep 11 10:09:55 PDT 2007


Author: lattner
Date: Tue Sep 11 12:09:54 2007
New Revision: 41849

URL: http://llvm.org/viewvc/llvm-project?rev=41849&view=rev
Log:
update this to use llvm-config, patch by Jose M. Moya

Modified:
    llvm/trunk/utils/profile.pl

Modified: llvm/trunk/utils/profile.pl
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/profile.pl?rev=41849&r1=41848&r2=41849&view=diff

==============================================================================
--- llvm/trunk/utils/profile.pl (original)
+++ llvm/trunk/utils/profile.pl Tue Sep 11 12:09:54 2007
@@ -62,11 +62,10 @@
 
 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 " .





More information about the llvm-commits mailing list