diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-09 19:40:39 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-09 19:40:39 +0000 |
commit | 873c8583e0f660ee0831751a9d105a57994159e1 (patch) | |
tree | dfb1b3c8888377ba4fb9f00b42f3c340cfa151d9 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 1b3240b0aafa9bcef3918dfbaf60e412f474d276 (diff) | |
download | bcm5719-llvm-873c8583e0f660ee0831751a9d105a57994159e1.tar.gz bcm5719-llvm-873c8583e0f660ee0831751a9d105a57994159e1.zip |
Turn FrontendInputFile into an immutable class and have it also accept
a memory buffer instead of only a filename.
llvm-svn: 167627
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 896e58184bc..9e7b630bf1a 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -600,9 +600,9 @@ bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input, FileManager &FileMgr, SourceManager &SourceMgr, const FrontendOptions &Opts) { - StringRef InputFile = Input.File; + StringRef InputFile = Input.getFile(); SrcMgr::CharacteristicKind - Kind = Input.IsSystem ? SrcMgr::C_System : SrcMgr::C_User; + Kind = Input.isSystem() ? SrcMgr::C_System : SrcMgr::C_User; // Figure out where to get and map in the main file. if (InputFile != "-") { |