summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/BlockFrequency.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-16 23:22:02 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-16 23:22:02 +0000
commit857546e7e00f150063d0e3143fbf14e5b2157c05 (patch)
treec10b61a8381bdfb657dbf8c3a5ac6194202f7949 /llvm/lib/Support/BlockFrequency.cpp
parent55d36e2b838383c574f371fa98546ff98b93b87a (diff)
downloadbcm5719-llvm-857546e7e00f150063d0e3143fbf14e5b2157c05.tar.gz
bcm5719-llvm-857546e7e00f150063d0e3143fbf14e5b2157c05.zip
Rename and improve emitSectionOffset.
Different object formats represent references from dwarf in different ways. ELF uses a relocation to the referenced point (except for .dwo) and COFF/MachO use the offset of the referenced point inside its section. This patch renames emitSectionOffset because * It doesn't produce an offset on ELF. * It changes behavior depending on how DWARF is represented, so adding dwarf to its name is probably a good thing. The patch also adds an option to force the use of offsets.That avoids funny looking code like if (!UseOffsets) Asm->emitSectionOffset.... It was correct, but read as if the ! was inverted. llvm-svn: 239866
Diffstat (limited to 'llvm/lib/Support/BlockFrequency.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud