Rename ANDROIDEABI to Android.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Sun, 2 Sep 2012 09:29:46 +0000 (09:29 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Sun, 2 Sep 2012 09:29:46 +0000 (09:29 +0000)
Most of the code guarded with ANDROIDEABI are not
ARM-specific, and having no relation with arm-eabi.
Thus, it will be more natural to call this
environment "Android" instead of "ANDROIDEABI".

Note: We are not using ANDROID because several projects
are using "-DANDROID" as the conditional compilation
flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163087 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h
lib/Support/Triple.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp

index c5694617a14ca0a3bc33c731fe0bcf5b7cfd5ace..ab1f0da51e40c205f751cc557cee41fd8d30d580 100644 (file)
@@ -110,7 +110,7 @@ public:
     GNUEABIHF,
     EABI,
     MachO,
-    ANDROIDEABI
+    Android
   };
 
 private:
index b5b2de1461adad57bfefc0aa7886f8dc856c0832..d1dc7c81af06ca6178fa73f1e0cc10e77798ceec 100644 (file)
@@ -139,7 +139,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
   case GNUEABI: return "gnueabi";
   case EABI: return "eabi";
   case MachO: return "macho";
-  case ANDROIDEABI: return "androideabi";
+  case Android: return "android";
   }
 
   llvm_unreachable("Invalid EnvironmentType!");
@@ -307,7 +307,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
     .StartsWith("gnueabi", Triple::GNUEABI)
     .StartsWith("gnu", Triple::GNU)
     .StartsWith("macho", Triple::MachO)
-    .StartsWith("androideabi", Triple::ANDROIDEABI)
+    .StartsWith("android", Triple::Android)
     .Default(Triple::UnknownEnvironment);
 }
 
index 2f0b015dc9aba15ecc633ef2a34d806f1d4d1c8b..42f21d2983a3bba6ce40a38f4b6ed3140b0b3200 100644 (file)
@@ -774,7 +774,7 @@ bool AddressSanitizer::runOnModule(Module &M) {
                             /*hasSideEffects=*/true);
 
   llvm::Triple targetTriple(M.getTargetTriple());
-  bool isAndroid = targetTriple.getEnvironment() == llvm::Triple::ANDROIDEABI;
+  bool isAndroid = targetTriple.getEnvironment() == llvm::Triple::Android;
 
   MappingOffset = isAndroid ? kDefaultShadowOffsetAndroid :
     (LongSize == 32 ? kDefaultShadowOffset32 : kDefaultShadowOffset64);