summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-12-24 23:36:59 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-12-24 23:36:59 +0000
commit0dc12c38e5336083af50d4d22f901c241828e628 (patch)
tree13bea5d68814ff6345224871828f552a5179ec59 /llvm/utils
parent782b654e6f8ce648e0db16b872c0b38a13d150a0 (diff)
downloadbcm5719-llvm-0dc12c38e5336083af50d4d22f901c241828e628.tar.gz
bcm5719-llvm-0dc12c38e5336083af50d4d22f901c241828e628.zip
support targetexternalsym
llvm-svn: 25005
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 05b96290a97..8754097d904 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -1983,6 +1983,10 @@ public:
OS << " ";
DeclareSDOperand("Tmp"+utostr(ResNo));
OS << " = " << Val << ";\n";
+ } else if (!N->isLeaf() && N->getOperator()->getName() == "texternalsym") {
+ OS << " ";
+ DeclareSDOperand("Tmp"+utostr(ResNo));
+ OS << " = " << Val << ";\n";
} else if (N->isLeaf() && (CP = NodeGetComplexPattern(N, ISE))) {
std::string Fn = CP->getSelectFunc();
NumRes = CP->getNumOperands();
OpenPOWER on IntegriCloud