commit | 1508c820959f037578173981905b916ad8ba47d2 | [log] [tgz] |
---|---|---|
author | Alp Toker <alp@nuanti.com> | Sun Jul 06 10:33:31 2014 +0000 |
committer | Alp Toker <alp@nuanti.com> | Sun Jul 06 10:33:31 2014 +0000 |
tree | 1d60f2cfa5d4605526415c98353a00ccc3e76c66 | |
parent | 1a5e5e38147d165f148c1837993f87a055875bef [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212398 91177308-0d34-0410-b5e6-96231b3b80d8