summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-07-09 08:30:15 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-07-09 08:30:15 +0000
commita5b27a7128a7bc6a1b746540dd4c493109db3039 (patch)
treec6dfa895d11e39b6293c8cdb6bedb4892f47e9bc /llvm/lib/Support/SourceMgr.cpp
parent7fe6a181412562796af5d9cc500995856315274c (diff)
downloadbcm5719-llvm-a5b27a7128a7bc6a1b746540dd4c493109db3039.tar.gz
bcm5719-llvm-a5b27a7128a7bc6a1b746540dd4c493109db3039.zip
SourceMgr: consistently use 'unsigned' for the memory buffer ID type
llvm-svn: 212595
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index 595c6eec110..003cb56e6cb 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/lib/Support/SourceMgr.cpp
@@ -49,9 +49,9 @@ SourceMgr::~SourceMgr() {
}
}
-size_t SourceMgr::AddIncludeFile(const std::string &Filename,
- SMLoc IncludeLoc,
- std::string &IncludedFile) {
+unsigned SourceMgr::AddIncludeFile(const std::string &Filename,
+ SMLoc IncludeLoc,
+ std::string &IncludedFile) {
IncludedFile = Filename;
ErrorOr<std::unique_ptr<MemoryBuffer>> NewBufOrErr =
MemoryBuffer::getFile(IncludedFile.c_str());
OpenPOWER on IntegriCloud