aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-07 05:31:56 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-07 05:31:56 +0000
commitf30fcff4a8486dd3216b51938849bc5ad0be59c2 (patch)
tree5800f7ea1041180a7aea3c34753aa76198dfaa58
parent0827501b32ccdd341e33a5a0a2369b807a3774e7 (diff)
downloadexternal_llvm-f30fcff4a8486dd3216b51938849bc5ad0be59c2.zip
external_llvm-f30fcff4a8486dd3216b51938849bc5ad0be59c2.tar.gz
external_llvm-f30fcff4a8486dd3216b51938849bc5ad0be59c2.tar.bz2
Eliminate compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71149 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PIC16/PIC16TargetAsmInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
index ac4039b..731329e 100644
--- a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
+++ b/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
@@ -87,7 +87,7 @@ PIC16TargetAsmInfo::getBSSSectionForGlobal(const GlobalVariable *GV) const {
// No BSS section spacious enough was found. Crate a new one.
if (! FoundBSS) {
char *name = new char[32];
- sprintf (name, "udata.%d.# UDATA", BSSSections.size());
+ sprintf (name, "udata.%d.# UDATA", (int)BSSSections.size());
const Section *NewSection = getNamedSection (name);
FoundBSS = new PIC16Section(NewSection);
@@ -133,7 +133,7 @@ PIC16TargetAsmInfo::getIDATASectionForGlobal(const GlobalVariable *GV) const {
// No IDATA section spacious enough was found. Crate a new one.
if (! FoundIDATA) {
char *name = new char[32];
- sprintf (name, "idata.%d.# IDATA", IDATASections.size());
+ sprintf (name, "idata.%d.# IDATA", (int)IDATASections.size());
const Section *NewSection = getNamedSection (name);
FoundIDATA = new PIC16Section(NewSection);