Skip to content
Snippets Groups Projects
Commit b7551f71 authored by Douglas Gregor's avatar Douglas Gregor
Browse files

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
parent 83f25ba0
No related branches found
No related tags found
No related merge requests found
...@@ -1620,4 +1620,12 @@ public: ...@@ -1620,4 +1620,12 @@ public:
} // end namespace clang } // end namespace clang
namespace llvm {
// SrcMgr::SLocEntry's are POD-like.
template<>
struct isPodLike<clang::SrcMgr::SLocEntry> {
static const bool value = true;
};
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment