summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-06-11 06:55:48 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-06-11 06:55:48 +0000
commitc8df02487e6aac08204db5b85a2d8409bcd45bf3 (patch)
treed98781445126239a829711f5edc05c7c3ccb2e4c /llvm/lib
parent8f03663a095c030c06648732f6db03dbd9b94ab9 (diff)
downloadbcm5719-llvm-c8df02487e6aac08204db5b85a2d8409bcd45bf3.tar.gz
bcm5719-llvm-c8df02487e6aac08204db5b85a2d8409bcd45bf3.zip
More formatting.
llvm-svn: 73185
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp
index 09cfa754f42..d6282270ec5 100644
--- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp
@@ -168,11 +168,16 @@ void PIC16AsmPrinter::printOperand(const MachineInstr *MI, int opNum) {
}
}
+/// printCCOperand - Print the cond code operand.
+///
void PIC16AsmPrinter::printCCOperand(const MachineInstr *MI, int opNum) {
int CC = (int)MI->getOperand(opNum).getImm();
O << PIC16CondCodeToString((PIC16CC::CondCodes)CC);
}
+/// printLibcallDecls - print the extern declarations for compiler
+/// intrinsics.
+///
void PIC16AsmPrinter::printLibcallDecls(void) {
// If no libcalls used, return.
if (LibcallDecls.empty()) return;
@@ -190,6 +195,10 @@ void PIC16AsmPrinter::printLibcallDecls(void) {
O << TAI->getCommentString() << "External decls for libcalls - END." <<"\n";
}
+/// doInitialization - Perfrom Module level initializations here.
+/// One task that we do here is to sectionize all global variables.
+/// The MemSelOptimizer pass depends on the sectionizing.
+///
bool PIC16AsmPrinter::doInitialization (Module &M) {
bool Result = AsmPrinter::doInitialization(M);
@@ -215,9 +224,10 @@ bool PIC16AsmPrinter::doInitialization (Module &M) {
return Result;
}
-// Emit extern decls for functions imported from other modules, and emit
-// global declarations for function defined in this module and which are
-// available to other modules.
+/// Emit extern decls for functions imported from other modules, and emit
+/// global declarations for function defined in this module and which are
+/// available to other modules.
+///
void PIC16AsmPrinter::EmitFunctionDecls (Module &M) {
// Emit declarations for external functions.
O << TAI->getCommentString() << "Function Declarations - BEGIN." <<"\n";
OpenPOWER on IntegriCloud