summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeEmitterGen.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-05 00:05:43 +0000
committerDan Gohman <gohman@apple.com>2009-12-05 00:05:43 +0000
commite79368d3ffb633a60449985b591855094cb82933 (patch)
treeb63592025639663ad1fdf6d8fffe80ea13451c89 /llvm/utils/TableGen/CodeEmitterGen.h
parentf96c416900a6de56a03af89354f92763d5e1d79c (diff)
downloadbcm5719-llvm-e79368d3ffb633a60449985b591855094cb82933.tar.gz
bcm5719-llvm-e79368d3ffb633a60449985b591855094cb82933.zip
Minor code simplification.
llvm-svn: 90628
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.h')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.h b/llvm/utils/TableGen/CodeEmitterGen.h
index f0b3229c041..ed6777d1f31 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.h
+++ b/llvm/utils/TableGen/CodeEmitterGen.h
@@ -23,6 +23,7 @@ namespace llvm {
class RecordVal;
class BitsInit;
+class Init;
class CodeEmitterGen : public TableGenBackend {
RecordKeeper &Records;
@@ -35,7 +36,7 @@ private:
void emitMachineOpEmitter(raw_ostream &o, const std::string &Namespace);
void emitGetValueBit(raw_ostream &o, const std::string &Namespace);
void reverseBits(std::vector<Record*> &Insts);
- int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
+ int getVariableBit(const Init *VarVal, BitsInit *BI, int bit);
};
} // End llvm namespace
OpenPOWER on IntegriCloud