forked from OSchip/llvm-project
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:
parent
d2639ef502
commit
2f4d7ba666
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue