diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-02-19 02:08:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-02-19 02:08:14 +0000 |
commit | 2878b7d7ab8dc4bf424690b58088e0b7d3ada49f (patch) | |
tree | 869769f63bfb5546750abfd1a1642de3fbca03f7 | |
parent | df8a668e3f694abcbe55224050f2c2f242b24e1e (diff) | |
download | external_llvm-2878b7d7ab8dc4bf424690b58088e0b7d3ada49f.zip external_llvm-2878b7d7ab8dc4bf424690b58088e0b7d3ada49f.tar.gz external_llvm-2878b7d7ab8dc4bf424690b58088e0b7d3ada49f.tar.bz2 |
Remove some unused private fields from the AArch64MCCodeEmitter. These
fields were only ever set in the constructor. The create method retains
its consistent interface so that these bits can be re-threaded through
the emitter if they're ever needed.
This was found by the -Wunused-private-field Clang warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175482 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp b/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp index d5d995b..756e037 100644 --- a/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp +++ b/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp @@ -31,15 +31,10 @@ namespace { class AArch64MCCodeEmitter : public MCCodeEmitter { AArch64MCCodeEmitter(const AArch64MCCodeEmitter &) LLVM_DELETED_FUNCTION; void operator=(const AArch64MCCodeEmitter &) LLVM_DELETED_FUNCTION; - const MCInstrInfo &MCII; - const MCSubtargetInfo &STI; MCContext &Ctx; public: - AArch64MCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti, - MCContext &ctx) - : MCII(mcii), STI(sti), Ctx(ctx) { - } + AArch64MCCodeEmitter(MCContext &ctx) : Ctx(ctx) {} ~AArch64MCCodeEmitter() {} @@ -492,7 +487,7 @@ MCCodeEmitter *llvm::createAArch64MCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, const MCSubtargetInfo &STI, MCContext &Ctx) { - return new AArch64MCCodeEmitter(MCII, STI, Ctx); + return new AArch64MCCodeEmitter(Ctx); } void AArch64MCCodeEmitter:: |