aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-28 15:39:10 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-28 15:39:10 +0000
commitb7551f71a4c5a901bbae72b0a80af3745b7a0c0d (patch)
treeef4176317eab13ec8774bfae8a6b3295eacfa33a /include/clang/Basic/SourceManager.h
parent83f25ba0499f18b91501fb6538c49ebc7827bea0 (diff)
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
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h8
1 files changed, 8 insertions, 0 deletions
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<clang::SrcMgr::SLocEntry> {
+ static const bool value = true;
+ };
+}
+
#endif