summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2008-06-26 00:31:12 +0000
committerEric Christopher <echristo@apple.com>2008-06-26 00:31:12 +0000
commitd0ab9c47e60a88c3da68176ade8048662f9c915f (patch)
treeb1a441133d52e29e24f4674dffd6edf5199223c0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentb1e66ce3bb6c7a629cb7dd4c84e32ab37536b41d (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud