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
This commit is contained in:
Douglas Gregor 2013-01-28 15:39:10 +00:00
parent d2639ef502
commit 2f4d7ba666
1 changed files with 8 additions and 0 deletions

View File

@ -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