[llvm] r175482 - Remove some unused private fields from the AArch64MCCodeEmitter. These

Chandler Carruth chandlerc at gmail.com
Mon Feb 18 18:08:14 PST 2013


Author: chandlerc
Date: Mon Feb 18 20:08:14 2013
New Revision: 175482

URL: http://llvm.org/viewvc/llvm-project?rev=175482&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp

Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp?rev=175482&r1=175481&r2=175482&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp Mon Feb 18 20:08:14 2013
@@ -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::createAArch64MCCode
                                                 const MCRegisterInfo &MRI,
                                                 const MCSubtargetInfo &STI,
                                                 MCContext &Ctx) {
-  return new AArch64MCCodeEmitter(MCII, STI, Ctx);
+  return new AArch64MCCodeEmitter(Ctx);
 }
 
 void AArch64MCCodeEmitter::





More information about the llvm-commits mailing list