[llvm] r239190 - [dsymutil] Rename a variable to appease some bots.

Frederic Riss friss at apple.com
Fri Jun 5 14:21:58 PDT 2015


Author: friss
Date: Fri Jun  5 16:21:57 2015
New Revision: 239190

URL: http://llvm.org/viewvc/llvm-project?rev=239190&view=rev
Log:
[dsymutil] Rename a variable to appease some bots.

Anyway having the type and the name of the member being the same
thing wasn't the wisest of the choices.

Modified:
    llvm/trunk/tools/dsymutil/DebugMap.cpp

Modified: llvm/trunk/tools/dsymutil/DebugMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DebugMap.cpp?rev=239190&r1=239189&r2=239190&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DebugMap.cpp (original)
+++ llvm/trunk/tools/dsymutil/DebugMap.cpp Fri Jun  5 16:21:57 2015
@@ -91,7 +91,7 @@ void DebugMap::dump() const { print(errs
 namespace {
 struct YAMLContext {
   StringRef PrependPath;
-  Triple Triple;
+  Triple BinaryTriple;
 };
 }
 
@@ -176,7 +176,7 @@ void MappingTraits<dsymutil::DebugMap>::
   io.mapRequired("triple", DM.BinaryTriple);
   io.mapOptional("objects", DM.Objects);
   if (void *Ctxt = io.getContext())
-    reinterpret_cast<YAMLContext *>(Ctxt)->Triple = DM.BinaryTriple;
+    reinterpret_cast<YAMLContext *>(Ctxt)->BinaryTriple = DM.BinaryTriple;
 }
 
 void MappingTraits<std::unique_ptr<dsymutil::DebugMap>>::mapping(
@@ -186,7 +186,7 @@ void MappingTraits<std::unique_ptr<dsymu
   io.mapRequired("triple", DM->BinaryTriple);
   io.mapOptional("objects", DM->Objects);
   if (void *Ctxt = io.getContext())
-    reinterpret_cast<YAMLContext *>(Ctxt)->Triple = DM->BinaryTriple;
+    reinterpret_cast<YAMLContext *>(Ctxt)->BinaryTriple = DM->BinaryTriple;
 }
 
 MappingTraits<dsymutil::DebugMapObject>::YamlDMO::YamlDMO(





More information about the llvm-commits mailing list