aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
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
commit330851a8f6cc7cf8ccf54ade63b5d58614c0218e (patch)
tree8b44ddb8984c51b2b6ad686876e1e76f274fb950 /utils/TableGen
parente4672aa5b42755d470f403b484958903227013ff (diff)
downloadexternal_llvm-330851a8f6cc7cf8ccf54ade63b5d58614c0218e.zip
external_llvm-330851a8f6cc7cf8ccf54ade63b5d58614c0218e.tar.gz
external_llvm-330851a8f6cc7cf8ccf54ade63b5d58614c0218e.tar.bz2
support targetexternalsym
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 05b9629..8754097 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/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();