diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-21 01:34:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-21 01:34:56 +0000 |
commit | f0757b0edc1ef3d1998485d3f74cadaa3f7180a0 (patch) | |
tree | 0033a00ee9950286fde22d96e7572f00e76349f2 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | af5097537c4599096d3f4b98a9fcff07c622d7f2 (diff) |
Add more const qualifiers on TargetMachine and friends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 5c3992ea06..33c8d1a36f 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -480,7 +480,8 @@ static void InitCmpLibcallCCs(ISD::CondCode *CCs) { } /// NOTE: The constructor takes ownership of TLOF. -TargetLowering::TargetLowering(TargetMachine &tm,TargetLoweringObjectFile *tlof) +TargetLowering::TargetLowering(const TargetMachine &tm, + const TargetLoweringObjectFile *tlof) : TM(tm), TD(TM.getTargetData()), TLOF(*tlof) { // All operations default to being supported. memset(OpActions, 0, sizeof(OpActions)); |