aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineFunction.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
commit591bfc8aa66d4d415be0d947e2764bcc9f5e25b7 (patch)
treeeefdfb1d225da0317e7f7912079c430b5c3ed92c /include/llvm/CodeGen/MachineFunction.h
parentd2dcb090a5db3cf20f4b74cc5c31424f758a7fa6 (diff)
downloadexternal_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.zip
external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.tar.gz
external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.tar.bz2
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 46d14e1..97027da 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -165,7 +165,7 @@ public:
/// getNumBlockIDs - Return the number of MBB ID's allocated.
///
- unsigned getNumBlockIDs() const { return MBBNumbering.size(); }
+ unsigned getNumBlockIDs() const { return (unsigned)MBBNumbering.size(); }
/// RenumberBlocks - This discards all of the MachineBasicBlock numbers and
/// recomputes them. This guarantees that the MBB numbers are sequential,
@@ -238,7 +238,7 @@ public:
reverse_iterator rend () { return BasicBlocks.rend(); }
const_reverse_iterator rend () const { return BasicBlocks.rend(); }
- unsigned size() const { return BasicBlocks.size(); }
+ unsigned size() const { return (unsigned)BasicBlocks.size();}
bool empty() const { return BasicBlocks.empty(); }
const MachineBasicBlock &front() const { return BasicBlocks.front(); }
MachineBasicBlock &front() { return BasicBlocks.front(); }
@@ -254,7 +254,7 @@ public:
///
unsigned addToMBBNumbering(MachineBasicBlock *MBB) {
MBBNumbering.push_back(MBB);
- return MBBNumbering.size()-1;
+ return (unsigned)MBBNumbering.size()-1;
}
/// removeFromMBBNumbering - Remove the specific machine basic block from our