[llvm-commits] [llvm] r71149 - /llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp

Evan Cheng evan.cheng at apple.com
Wed May 6 22:31:56 PDT 2009


Author: evancheng
Date: Thu May  7 00:31:56 2009
New Revision: 71149

URL: http://llvm.org/viewvc/llvm-project?rev=71149&view=rev
Log:
Eliminate compiler warnings.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp?rev=71149&r1=71148&r2=71149&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp Thu May  7 00:31:56 2009
@@ -87,7 +87,7 @@
   // 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 @@
   // 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);





More information about the llvm-commits mailing list