aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-11-12 23:48:04 +0000
committerFrederic Riss <friss@apple.com>2014-11-12 23:48:04 +0000
commite4576d2c46e66fbf2b7b076a688eb24424852376 (patch)
tree085b1dd368029f78d130e074261bb7de2c02dc02 /llvm/lib/Object/COFFObjectFile.cpp
parent6cbfa91e916a17166145a7b270f5ba284dfd9a90 (diff)
downloadllvm-e4576d2c46e66fbf2b7b076a688eb24424852376.zip
llvm-e4576d2c46e66fbf2b7b076a688eb24424852376.tar.gz
llvm-e4576d2c46e66fbf2b7b076a688eb24424852376.tar.bz2
Allow DWARFFormValue::extractValue to be called with a null CU.
Currently FormValues are only used for attributes of DIEs and thus uers always have a CU lying around when calling into the FormValue API. Accelerator tables encode their information using the same Forms as the attributes, thus it is natural to use DWARFFormValue to extract/dump them. There is no CU in that case though. Allow the API to be called with a null CU arguemnt by making the RelocMap lookup conditional on the CU pointer validity. And document this new behvior in the header. (Test coverage for this use of the API comes in the DwarfAccelTable support patch) llvm-svn: 221835
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions