From: Douglas Gregor Date: Mon, 28 Jan 2013 15:39:10 +0000 (+0000) Subject: Note that SrcMgr::SLocEntry's are POD-like, so SmallVector can do a X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7551f71a4c5a901bbae72b0a80af3745b7a0c0d;p=clang Note that SrcMgr::SLocEntry's are POD-like, so SmallVector can do a 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 --- diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index d9b21ce60d..7775619e01 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -1620,4 +1620,12 @@ public: } // end namespace clang +namespace llvm { + // SrcMgr::SLocEntry's are POD-like. + template<> + struct isPodLike { + static const bool value = true; + }; +} + #endif