diff options
author | Eric Christopher <echristo@apple.com> | 2008-06-26 00:31:12 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2008-06-26 00:31:12 +0000 |
commit | d0ab9c47e60a88c3da68176ade8048662f9c915f (patch) | |
tree | b1a441133d52e29e24f4674dffd6edf5199223c0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | b1e66ce3bb6c7a629cb7dd4c84e32ab37536b41d (diff) | |
download | bcm5719-llvm-d0ab9c47e60a88c3da68176ade8048662f9c915f.tar.gz bcm5719-llvm-d0ab9c47e60a88c3da68176ade8048662f9c915f.zip |
Move GetConstantStringInfo to lib/Analysis. Remove
string output routine from Constant. Update all
callers. Change debug intrinsic api slightly to
accomodate move of routine, these now return values
instead of strings.
llvm-svn: 52748
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index f1c2ecf19d3..9c5997df45d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/Constants.h" +#include "llvm/Analysis/ValueTracking.h" #include "llvm/GlobalAlias.h" #include "llvm/GlobalVariable.h" #include "llvm/Intrinsics.h" @@ -2594,8 +2595,7 @@ static bool isMemSrcFromString(SDOperand Src, std::string &Str, GlobalVariable *GV = dyn_cast<GlobalVariable>(G->getGlobal()); if (GV && GV->isConstant()) { - Str = GV->getStringValue(false); - if (!Str.empty()) { + if (GetConstantStringInfo(GV, Str)) { SrcOff += SrcDelta; return true; } |