diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-05 00:05:43 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-05 00:05:43 +0000 |
commit | 7004b9cf337c0ebdb778c157529def6ad425ba5b (patch) | |
tree | e9ba3fb0afb7ab343dbfafe60f420d6978f48d05 /utils/TableGen/CodeEmitterGen.h | |
parent | 63be493b52e3558f2c579fef78d194c76c99eb8b (diff) | |
download | external_llvm-7004b9cf337c0ebdb778c157529def6ad425ba5b.zip external_llvm-7004b9cf337c0ebdb778c157529def6ad425ba5b.tar.gz external_llvm-7004b9cf337c0ebdb778c157529def6ad425ba5b.tar.bz2 |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.h')
-rw-r--r-- | utils/TableGen/CodeEmitterGen.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/CodeEmitterGen.h b/utils/TableGen/CodeEmitterGen.h index f0b3229..ed6777d 100644 --- a/utils/TableGen/CodeEmitterGen.h +++ b/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 |