aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-01-26 17:29:20 +0000
committerJim Laskey <jlaskey@mac.com>2007-01-26 17:29:20 +0000
commita683f9ba1356e92a5e7243d9f80fe8a8b6f737c8 (patch)
treef1968755ecfab5c1612dba797cfe0c8e3631cb94 /utils/TableGen/CodeEmitterGen.cpp
parent9373d272b2183bf62083773e22ad6b1272cb089a (diff)
Files missing from LABEL check in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index 861c6b0e34..300a1009a7 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -24,7 +24,9 @@ void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) {
for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end();
I != E; ++I) {
Record *R = *I;
- if (R->getName() == "PHI" || R->getName() == "INLINEASM") continue;
+ if (R->getName() == "PHI" ||
+ R->getName() == "INLINEASM" ||
+ R->getName() == "LABEL") continue;
BitsInit *BI = R->getValueAsBitsInit("Inst");
@@ -93,7 +95,9 @@ void CodeEmitterGen::run(std::ostream &o) {
if (IN != NumberedInstructions.begin()) o << ",\n";
- if (R->getName() == "PHI" || R->getName() == "INLINEASM") {
+ if (R->getName() == "PHI" ||
+ R->getName() == "INLINEASM" ||
+ R->getName() == "LABEL") {
o << " 0U";
continue;
}
@@ -121,7 +125,9 @@ void CodeEmitterGen::run(std::ostream &o) {
const std::string &InstName = R->getName();
std::string Case("");
- if (InstName == "PHI" || InstName == "INLINEASM") continue;
+ if (InstName == "PHI" ||
+ InstName == "INLINEASM" ||
+ InstName == "LABEL") continue;
BitsInit *BI = R->getValueAsBitsInit("Inst");
const std::vector<RecordVal> &Vals = R->getValues();