mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
SourceMgr: consistently use 'unsigned' for the memory buffer ID type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,7 +99,7 @@ public:
|
||||
return Buffers[i - 1].Buffer;
|
||||
}
|
||||
|
||||
size_t getNumBuffers() const {
|
||||
unsigned getNumBuffers() const {
|
||||
return Buffers.size();
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
|
||||
/// Add a new source buffer to this source manager. This takes ownership of
|
||||
/// the memory buffer.
|
||||
size_t AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) {
|
||||
unsigned AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) {
|
||||
SrcBuffer NB;
|
||||
NB.Buffer = F;
|
||||
NB.IncludeLoc = IncludeLoc;
|
||||
@@ -129,8 +129,8 @@ public:
|
||||
/// If no file is found, this returns 0, otherwise it returns the buffer ID
|
||||
/// of the stacked file. The full path to the included file can be found in
|
||||
/// \p IncludedFile.
|
||||
size_t AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
|
||||
std::string &IncludedFile);
|
||||
unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
|
||||
std::string &IncludedFile);
|
||||
|
||||
/// Return the ID of the buffer containing the specified location.
|
||||
///
|
||||
|
Reference in New Issue
Block a user