summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-02-19 10:56:23 +0000
committerTim Northover <tnorthover@apple.com>2014-02-19 10:56:23 +0000
commit7e4849356354e48bb034f4867990d954df695b72 (patch)
tree6f1df3f1165a0e8471c46a27d2316b8f530afbb6 /utils
parentf2e65351984ddf8944df7adc181275c1d6dc62c2 (diff)
downloadclang-7e4849356354e48bb034f4867990d954df695b72.tar.gz
clang-7e4849356354e48bb034f4867990d954df695b72.tar.bz2
clang-7e4849356354e48bb034f4867990d954df695b72.tar.xz
ARM & AArch64: move struct definition outside function.
Apparently it's not True C++. rdar://problem/16035743 still. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/NeonEmitter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index b33c89d8b2..9c863b2123 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -3029,6 +3029,11 @@ NeonEmitter::genIntrinsicRangeCheckCode(raw_ostream &OS) {
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(raw_ostream &OS) {
// 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;