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: http://review.tizen.org/git/?a=commitdiff_plain;h=2f4d7ba6669c5b1e049aa4cf18cdf29c96b44797;p=platform%2Fupstream%2Fllvm.git 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... llvm-svn: 173689 --- diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h index d9b21ce..7775619 100644 --- a/clang/include/clang/Basic/SourceManager.h +++ b/clang/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