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 | 57c732b0323d93864dcbc796839ab6d5851f7823 (patch) | |
tree | af4320484ab0b72fed8fde05e61a348da31aef4f /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | cc5e6528a5d4477dbf52f2c080a577a9006323a1 (diff) | |
download | bcm5719-llvm-57c732b0323d93864dcbc796839ab6d5851f7823.tar.gz bcm5719-llvm-57c732b0323d93864dcbc796839ab6d5851f7823.zip |
Add more const qualifiers on TargetMachine and friends.
llvm-svn: 101977
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 5c3992ea061..33c8d1a36ff 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/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)); |