diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 09:10:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 09:10:05 +0000 |
commit | 40165180f79bb92b86fdaa91f3a218393a90fd2d (patch) | |
tree | 9bc92b77393e166c8b99c246af42361da71b6e4b /clang/lib/Frontend/PCHReader.cpp | |
parent | e3532f82a77995b4006f79138146ba1579a78cc4 (diff) | |
download | bcm5719-llvm-40165180f79bb92b86fdaa91f3a218393a90fd2d.tar.gz bcm5719-llvm-40165180f79bb92b86fdaa91f3a218393a90fd2d.zip |
Switch TargetInfo to store an llvm::Triple.
- Primarily to discourage clients form making decisions based on the string.
llvm-svn: 79901
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index c025fcd1aa4..cb008c0ea20 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -115,9 +115,9 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) { } bool PCHValidator::ReadTargetTriple(const std::string &Triple) { - if (Triple != PP.getTargetInfo().getTargetTriple()) { + if (Triple != PP.getTargetInfo().getTriple().getTriple()) { Reader.Diag(diag::warn_pch_target_triple) - << Triple << PP.getTargetInfo().getTargetTriple(); + << Triple << PP.getTargetInfo().getTriple().getTriple(); return true; } return false; |