From: Chris Lattner Date: Tue, 11 Sep 2007 17:09:54 +0000 (+0000) Subject: update this to use llvm-config, patch by Jose M. Moya X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=111e8ce3a2b6279dcc348878349fd459c4ed883c;p=oota-llvm.git update this to use llvm-config, patch by Jose M. Moya git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41849 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 " .