]> granicus.if.org Git - clang/commit
This adds the argument --dump-ir to clang-import-test, which allows
authorSean Callanan <scallanan@apple.com>
Mon, 7 Aug 2017 22:27:30 +0000 (22:27 +0000)
committerSean Callanan <scallanan@apple.com>
Mon, 7 Aug 2017 22:27:30 +0000 (22:27 +0000)
commit6dad790d8f716b965ba714aa3710af5648069f76
tree2055ed7a9ae5950ba85154aae3d3544977009e21
parent82579b76c61e6e510080e4b844169d8f4d126a36
This adds the argument --dump-ir to clang-import-test, which allows
viewing of the final IR. This is useful for confirming that
structure layout was correct.

I've added two tests:

- A test that checks that structs in top-level code are completed
  correctly during struct layout (they are)
- A test that checks that structs defined in function bodies are
  cpmpleted correctly during struct layout (currently they are not,
  so this is XFAIL).

The second test fails because LookupSameContext()
(ExternalASTMerger.cpp) can't find the struct. This is an issue I
intend to resolve separately.

Differential Revision: https://reviews.llvm.org/D36429

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310318 91177308-0d34-0410-b5e6-96231b3b80d8
test/Import/local-struct/Inputs/Callee.cpp [new file with mode: 0644]
test/Import/local-struct/test.cpp [new file with mode: 0644]
test/Import/struct-layout/Inputs/Callee.cpp [new file with mode: 0644]
test/Import/struct-layout/test.cpp [new file with mode: 0644]
tools/clang-import-test/clang-import-test.cpp