]> granicus.if.org Git - clang/commitdiff
Note that SrcMgr::SLocEntry's are POD-like, so SmallVector can do a
authorDouglas Gregor <dgregor@apple.com>
Mon, 28 Jan 2013 15:39:10 +0000 (15:39 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 28 Jan 2013 15:39:10 +0000 (15:39 +0000)
better job with them. Shaves off 0.7% of -fparse-only time for a
modules test case. Sure makes you wonder...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173689 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceManager.h

index d9b21ce60d8bd8ccae53da014ee7d9434e5dbe68..7775619e013eb36d637a4ada985c2634981ff02d 100644 (file)
@@ -1620,4 +1620,12 @@ public:
 
 }  // end namespace clang
 
+namespace llvm {
+  // SrcMgr::SLocEntry's are POD-like.
+  template<>
+  struct isPodLike<clang::SrcMgr::SLocEntry> {
+    static const bool value = true;
+  };
+}
+
 #endif