Add a variable to track whether or not we've used a unique section,
authorEric Christopher <echristo@gmail.com>
Thu, 23 Jan 2014 06:47:25 +0000 (06:47 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 23 Jan 2014 06:47:25 +0000 (06:47 +0000)
commit80664e50cd9efab348cea6221e461bcee11386ea
tree2966905c58565322cbba4d51431bf28b8371a672
parentfa6e5cb5113d6cfb1f1bff3a1539859e33f9722a
Add a variable to track whether or not we've used a unique section,
e.g. linkonce, to TargetMachine and set it when we've done so
for ELF targets currently. This involved making TargetMachine
non-const in a TLOF use and propagating that change around - I'm
open to other ideas.

This will be used in a future commit to handle emitting debug
information with ranges.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199871 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm/Target/TargetLoweringObjectFile.h
include/llvm/Target/TargetMachine.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
lib/Target/Hexagon/HexagonTargetObjectFile.h
lib/Target/Mips/MipsTargetObjectFile.cpp
lib/Target/Mips/MipsTargetObjectFile.h
lib/Target/PowerPC/PPCTargetObjectFile.cpp
lib/Target/PowerPC/PPCTargetObjectFile.h
lib/Target/TargetLoweringObjectFile.cpp
lib/Target/TargetMachine.cpp
lib/Target/XCore/XCoreTargetObjectFile.cpp
lib/Target/XCore/XCoreTargetObjectFile.h