]> granicus.if.org Git - clang/commitdiff
Driver: Make local type name more distinct.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 18 Nov 2009 20:19:26 +0000 (20:19 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 18 Nov 2009 20:19:26 +0000 (20:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89233 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Types.cpp

index 30893e7cc0ccd4e2295d1ea866ec005e05ecbead..750286b66c9619f263a4c7841de3a2347f5a4b96 100644 (file)
 using namespace clang::driver;
 using namespace clang::driver::types;
 
-struct Info {
+struct TypeInfo {
   const char *Name;
   const char *Flags;
   const char *TempSuffix;
   ID PreprocessedType;
 };
 
-static Info TypeInfos[] = {
+static TypeInfo TypeInfos[] = {
 #define TYPE(NAME, ID, PP_TYPE, TEMP_SUFFIX, FLAGS) \
   { NAME, FLAGS, TEMP_SUFFIX, TY_##PP_TYPE, },
 #include "clang/Driver/Types.def"
@@ -31,7 +31,7 @@ static Info TypeInfos[] = {
 };
 static const unsigned numTypes = sizeof(TypeInfos) / sizeof(TypeInfos[0]);
 
-static Info &getInfo(unsigned id) {
+static TypeInfo &getInfo(unsigned id) {
   assert(id > 0 && id - 1 < numTypes && "Invalid Type ID.");
   return TypeInfos[id - 1];
 }