diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-03-25 18:52:01 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-03-25 18:52:01 +0000 |
commit | 70feca409e3a79c3d9295cbc81c257de6be8ef3e (patch) | |
tree | d727cf17e34cd493b02e9d588053137d768f01f1 /utils/TableGen/InstrInfoEmitter.cpp | |
parent | 7bf198fd607b356e767e0577cac81c3491c4bc90 (diff) | |
download | llvm-70feca409e3a79c3d9295cbc81c257de6be8ef3e.tar.gz llvm-70feca409e3a79c3d9295cbc81c257de6be8ef3e.tar.bz2 llvm-70feca409e3a79c3d9295cbc81c257de6be8ef3e.tar.xz |
Teach TableGen to understand X.Y notation in the TSFlagsFields strings.
Remove much horribleness from X86InstrFormats as a result. Similar
simplifications are probably possible for other targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 8f7550b848..9bc545928d 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -337,7 +337,7 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val, IntInit *ShiftInt, raw_ostream &OS) { if (Val == 0 || ShiftInt == 0) throw std::string("Illegal value or shift amount in TargetInfo*!"); - RecordVal *RV = R->getValue(Val->getValue()); + RecordVal *RV = R->getDottedValue(Val->getValue()); int Shift = ShiftInt->getValue(); if (RV == 0 || RV->getValue() == 0) { |