[llvm] r190941 - More XCore TTI cleanup -- remove an unused private field flagged by

Chandler Carruth chandlerc at gmail.com
Wed Sep 18 07:11:11 PDT 2013


Author: chandlerc
Date: Wed Sep 18 09:11:11 2013
New Revision: 190941

URL: http://llvm.org/viewvc/llvm-project?rev=190941&view=rev
Log:
More XCore TTI cleanup -- remove an unused private field flagged by
-Wunused-private-field with Clang.

Modified:
    llvm/trunk/lib/Target/XCore/XCoreTargetTransformInfo.cpp

Modified: llvm/trunk/lib/Target/XCore/XCoreTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreTargetTransformInfo.cpp?rev=190941&r1=190940&r2=190941&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreTargetTransformInfo.cpp Wed Sep 18 09:11:11 2013
@@ -32,15 +32,13 @@ void initializeXCoreTTIPass(PassRegistry
 namespace {
 
 class XCoreTTI : public ImmutablePass, public TargetTransformInfo {
-  const XCoreTargetMachine *TM;
-
 public:
-  XCoreTTI() : ImmutablePass(ID), TM(0) {
+  XCoreTTI() : ImmutablePass(ID) {
     llvm_unreachable("This pass cannot be directly constructed");
   }
 
   XCoreTTI(const XCoreTargetMachine *TM)
-      : ImmutablePass(ID), TM(TM) {
+      : ImmutablePass(ID) {
     initializeXCoreTTIPass(*PassRegistry::getPassRegistry());
   }
 





More information about the llvm-commits mailing list