aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-06 10:33:31 +0000
committerAlp Toker <alp@nuanti.com>2014-07-06 10:33:31 +0000
commita55b95b58ad8f2d474564eefd3815759c5a0d1c2 (patch)
tree8b595a435702695b569fbd488a734b462e71cad7 /llvm/lib/Support/LockFileManager.cpp
parent54cc62740f8abe1ac69c664e006c22bea5c4957b (diff)
downloadllvm-a55b95b58ad8f2d474564eefd3815759c5a0d1c2.zip
llvm-a55b95b58ad8f2d474564eefd3815759c5a0d1c2.tar.gz
llvm-a55b95b58ad8f2d474564eefd3815759c5a0d1c2.tar.bz2
SourceMgr: make valid buffer IDs start from one
Use 0 for the invalid buffer instead of -1/~0 and switch to unsigned representation to enable more idiomatic usage. Also introduce a trivial SourceMgr::getMainFileID() instead of hard-coding 0/1 to identify the main file. llvm-svn: 212398
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
0 files changed, 0 insertions, 0 deletions