aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-09 19:40:39 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-09 19:40:39 +0000
commit8616f9af65b9a3662f2c9dfed38eeabc509f8446 (patch)
tree39f559b5f8c3ff75153fcd01f7e1cdee0d8cbc6c /lib/Frontend/CompilerInstance.cpp
parent8e1fbbc492bc1f4833136d9b55e1aaf478565d32 (diff)
Turn FrontendInputFile into an immutable class and have it also accept
a memory buffer instead of only a filename. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r--lib/Frontend/CompilerInstance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index 896e58184b..9e7b630bf1 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/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 != "-") {