From b7551f71a4c5a901bbae72b0a80af3745b7a0c0d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 28 Jan 2013 15:39:10 +0000 Subject: [PATCH] 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 --- include/clang/Basic/SourceManager.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.40.0