r201663 - ARM & AArch64: move struct definition outside function.

Tim Northover tnorthover at apple.com
Wed Feb 19 02:56:23 PST 2014


Author: tnorthover
Date: Wed Feb 19 04:56:23 2014
New Revision: 201663

URL: http://llvm.org/viewvc/llvm-project?rev=201663&view=rev
Log:
ARM & AArch64: move struct definition outside function.

Apparently it's not True C++.

rdar://problem/16035743 still.

Modified:
    cfe/trunk/utils/TableGen/NeonEmitter.cpp

Modified: cfe/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/NeonEmitter.cpp?rev=201663&r1=201662&r2=201663&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/NeonEmitter.cpp Wed Feb 19 04:56:23 2014
@@ -3029,6 +3029,11 @@ NeonEmitter::genIntrinsicRangeCheckCode(
   OS << "#endif\n\n";
 }
 
+struct OverloadInfo {
+  uint64_t Mask;
+  int PtrArgNum;
+  bool HasConstPtr;
+};
 /// Generate the ARM and AArch64 overloaded type checking code for
 /// SemaChecking.cpp, checking for unique builtin declarations.
 void
@@ -3041,11 +3046,6 @@ NeonEmitter::genOverloadTypeCheckCode(ra
   // We record each overload check line before emitting because subsequent Inst
   // definitions may extend the number of permitted types (i.e. augment the
   // Mask). Use std::map to avoid sorting the table by hash number.
-  struct OverloadInfo {
-    uint64_t Mask;
-    int PtrArgNum;
-    bool HasConstPtr;
-  };
   std::map<std::string, OverloadInfo> OverloadMap;
   typedef std::map<std::string, OverloadInfo>::iterator OverloadIterator;
 





More information about the cfe-commits mailing list