summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-01-29 05:27:31 +0000
committerBill Wendling <isanbard@gmail.com>2009-01-29 05:27:31 +0000
commit6e1bb38fb8dd64ece28ea5779a8bbf9b5ff7fb96 (patch)
tree585e4c5e20c1ce37ad92d4dd766d8c91aac05065 /utils
parentcee3e7cb6830664a0b228211923589b5d72c93d4 (diff)
downloadllvm-6e1bb38fb8dd64ece28ea5779a8bbf9b5ff7fb96.tar.gz
llvm-6e1bb38fb8dd64ece28ea5779a8bbf9b5ff7fb96.tar.bz2
llvm-6e1bb38fb8dd64ece28ea5779a8bbf9b5ff7fb96.tar.xz
- Add DebugLoc to getTargetNode().
- Modify TableGen to add the DebugLoc when calling getTargetNode. (The light-weight wrappers are only temporary. The non-DebugLoc version will be removed once the whole debug info stuff is finished with.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index d6bcce2703..ace15e5180 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -1059,6 +1059,9 @@ public:
std::string Code = "Opc" + utostr(OpcNo);
+ if (!isRoot || (InputHasChain && !NodeHasChain))
+ Code += ", N.getDebugLoc()";
+
emitOpcode(II.Namespace + "::" + II.TheDef->getName());
// Output order: results, chain, flags