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...

llvm-svn: 173689

clang/include/clang/Basic/SourceManager.h

index d9b21ce..7775619 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