summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-01 07:32:19 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-01 07:32:19 +0000
commita090ffb2ab6da8097d76979eed206568a65a02d0 (patch)
tree543182e38920521bb63fceb5dcf3d88f04a205cf /llvm/lib/CodeGen
parenteba021453bded5fca6e059dfa62ba0c32aa8e6f2 (diff)
downloadbcm5719-llvm-a090ffb2ab6da8097d76979eed206568a65a02d0.tar.gz
bcm5719-llvm-a090ffb2ab6da8097d76979eed206568a65a02d0.zip
For PR1297:
Change getOperationName to return std::string instead of const char* llvm-svn: 35545
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index e45b6fd3426..dc3450c712d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2644,7 +2644,7 @@ uint64_t SDNode::getConstantOperandVal(unsigned Num) const {
return cast<ConstantSDNode>(OperandList[Num])->getValue();
}
-const char *SDNode::getOperationName(const SelectionDAG *G) const {
+std::string SDNode::getOperationName(const SelectionDAG *G) const {
switch (getOpcode()) {
default:
if (getOpcode() < ISD::BUILTIN_OP_END)
OpenPOWER on IntegriCloud