projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2639ef
)
Note that SrcMgr::SLocEntry's are POD-like, so SmallVector can do a
author
Douglas Gregor
<dgregor@apple.com>
Mon, 28 Jan 2013 15:39:10 +0000
(15:39 +0000)
committer
Douglas 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
patch
|
blob
|
history
diff --git
a/clang/include/clang/Basic/SourceManager.h
b/clang/include/clang/Basic/SourceManager.h
index
d9b21ce
..
7775619
100644
(file)
--- 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<clang::SrcMgr::SLocEntry> {
+ static const bool value = true;
+ };
+}
+
#endif