diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-10 18:22:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-10 18:22:45 +0000 |
commit | 32483a7641a431bf9e217948fb237642a26c7569 (patch) | |
tree | 8425125c34e5dc4ca1394bb4b599727e88fc90a7 /clang/unittests/Basic/VirtualFileSystemTest.cpp | |
parent | c3b0a5b0999f0783ab574094bcbe70d20e37d44c (diff) | |
download | llvm-32483a7641a431bf9e217948fb237642a26c7569.zip llvm-32483a7641a431bf9e217948fb237642a26c7569.tar.gz llvm-32483a7641a431bf9e217948fb237642a26c7569.tar.bz2 |
Make "@name =" mandatory for globals in .ll files.
An oddity of the .ll syntax is that the "@var = " in
@var = global i32 42
is optional. Writing just
global i32 42
is equivalent to
@0 = global i32 42
This means that there is a pretty big First set at the top level. The
current implementation maintains it manually. I was trying to refactor
it, but then started wondering why keep it a all. I personally find the
above syntax confusing. It looks like something is missing.
This patch removes the feature and simplifies the parser.
llvm-svn: 269096
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions