aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-04-20 12:33:49 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-04-20 12:33:49 +0000
commit5c709eda073c78b81d9bbb5d24e5412409031bd5 (patch)
treec65a40bb4effa78661d33d46839ef05ca11c72e1 /clang/lib/Frontend/CompilerInvocation.cpp
parent4dd9a557fc336e96303a1cda975a0e4decab8635 (diff)
downloadllvm-5c709eda073c78b81d9bbb5d24e5412409031bd5.zip
llvm-5c709eda073c78b81d9bbb5d24e5412409031bd5.tar.gz
llvm-5c709eda073c78b81d9bbb5d24e5412409031bd5.tar.bz2
[ObjectYAML] Add ability for DWARFYAML to calculate DIE lengths
This patch adds the ability for the ObjectYAML DWARFEmitter to calculate the lengths of DIEs. This is accomplished by creating a DIEFixupVisitor class which traverses the DWARF DIEs to calculate and fix up the lengths in the Compile Unit header. The DIEFixupVisitor can be extended in the future to enable more complex fix ups which will enable simplified YAML string representations. This is also very useful when using the YAML format in unit tests because you no longer need to know the length of the compile unit when writing the YAML string. Differential commandeered from Chris Bieneman (beanz) Differential revision: https://reviews.llvm.org/D30666 llvm-svn: 330421
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions