r188913 - Remove dead code.

Rafael Espindola rafael.espindola at gmail.com
Wed Aug 21 11:13:43 PDT 2013


Author: rafael
Date: Wed Aug 21 13:13:43 2013
New Revision: 188913

URL: http://llvm.org/viewvc/llvm-project?rev=188913&view=rev
Log:
Remove dead code.

setFeatureEnabled is never called with "32" or "64". The driver never passes it
and mips' getDefaultFeatures sets the Features map directly.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=188913&r1=188912&r2=188913&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Aug 21 13:13:43 2013
@@ -4642,16 +4642,6 @@ public:
     return "";
   }
 
-  virtual void setFeatureEnabled(llvm::StringMap<bool> &Features,
-                                 StringRef Name,
-                                 bool Enabled) const {
-    if (Name == "32")
-      Name = "o32";
-    else if (Name == "64")
-      Name = "n64";
-    Features[Name] = Enabled;
-  }
-
   virtual void HandleTargetFeatures(std::vector<std::string> &Features) {
     IsMips16 = false;
     IsMicromips = false;





More information about the cfe-commits mailing list