summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ModuleManager.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 /clang/lib/Serialization/ModuleManager.cpp
parent54cc62740f8abe1ac69c664e006c22bea5c4957b (diff)
downloadbcm5719-llvm-a55b95b58ad8f2d474564eefd3815759c5a0d1c2.tar.gz
bcm5719-llvm-a55b95b58ad8f2d474564eefd3815759c5a0d1c2.zip
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 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud