File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
llvm/lib/Target/PowerPC/AsmParser Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ namespace {
97
97
struct PPCOperand ;
98
98
99
99
class PPCAsmParser : public MCTargetAsmParser {
100
- bool IsPPC64;
100
+ const bool IsPPC64;
101
101
102
102
void Warning (SMLoc L, const Twine &Msg) { getParser ().Warning (L, Msg); }
103
103
@@ -142,10 +142,8 @@ class PPCAsmParser : public MCTargetAsmParser {
142
142
public:
143
143
PPCAsmParser (const MCSubtargetInfo &STI, MCAsmParser &,
144
144
const MCInstrInfo &MII, const MCTargetOptions &Options)
145
- : MCTargetAsmParser(Options, STI, MII) {
146
- // Check for 64-bit vs. 32-bit pointer mode.
147
- const Triple &TheTriple = STI.getTargetTriple ();
148
- IsPPC64 = TheTriple.isPPC64 ();
145
+ : MCTargetAsmParser(Options, STI, MII),
146
+ IsPPC64 (STI.getTargetTriple().isPPC64()) {
149
147
// Initialize the set of available features.
150
148
setAvailableFeatures (ComputeAvailableFeatures (STI.getFeatureBits ()));
151
149
}
You can’t perform that action at this time.
0 commit comments