[cfe-commits] r89233 - /cfe/trunk/lib/Driver/Types.cpp

Daniel Dunbar daniel at zuster.org
Wed Nov 18 12:19:26 PST 2009


Author: ddunbar
Date: Wed Nov 18 14:19:26 2009
New Revision: 89233

URL: http://llvm.org/viewvc/llvm-project?rev=89233&view=rev
Log:
Driver: Make local type name more distinct.

Modified:
    cfe/trunk/lib/Driver/Types.cpp

Modified: cfe/trunk/lib/Driver/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Types.cpp?rev=89233&r1=89232&r2=89233&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Types.cpp (original)
+++ cfe/trunk/lib/Driver/Types.cpp Wed Nov 18 14:19:26 2009
@@ -16,14 +16,14 @@
 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 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];
 }





More information about the cfe-commits mailing list