projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I cannot find a libgcc function for this builtin. Therefor expanding it to a noop...
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter.cpp
diff --git
a/lib/CodeGen/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter.cpp
index eac574386b62aed61a70044586c221e0f716a543..b718958f974f579f72215a878bb92a7618ae8804 100644
(file)
--- a/
lib/CodeGen/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter.cpp
@@
-118,9
+118,8
@@
bool AsmPrinter::doInitialization(Module &M) {
SwitchToDataSection(""); // Reset back to no section.
SwitchToDataSection(""); // Reset back to no section.
- if (MachineModuleInfo *MMI = getAnalysisToUpdate<MachineModuleInfo>()) {
- MMI->AnalyzeModule(M);
- }
+ MMI = getAnalysisToUpdate<MachineModuleInfo>();
+ if (MMI) MMI->AnalyzeModule(M);
return false;
}
return false;
}
@@
-158,7
+157,7
@@
bool AsmPrinter::doFinalization(Module &M) {
else if (!I->hasInternalLinkage())
assert(0 && "Invalid alias linkage");
else if (!I->hasInternalLinkage())
assert(0 && "Invalid alias linkage");
- O << TAI->getSetDirective() << Name << ", " << Target << "\n";
+ O << TAI->getSetDirective() <<
' ' <<
Name << ", " << Target << "\n";
// If the aliasee has external weak linkage it can be referenced only by
// alias itself. In this case it can be not in ExtWeakSymbols list. Emit
// If the aliasee has external weak linkage it can be referenced only by
// alias itself. In this case it can be not in ExtWeakSymbols list. Emit
@@
-1281,18
+1280,22
@@
void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
/// printLabel - This method prints a local label used by debug and
/// exception handling tables.
void AsmPrinter::printLabel(const MachineInstr *MI) const {
/// printLabel - This method prints a local label used by debug and
/// exception handling tables.
void AsmPrinter::printLabel(const MachineInstr *MI) const {
- O <<
"\n" <<
TAI->getPrivateGlobalPrefix()
+ O << TAI->getPrivateGlobalPrefix()
<< "label" << MI->getOperand(0).getImm() << ":\n";
}
void AsmPrinter::printLabel(unsigned Id) const {
<< "label" << MI->getOperand(0).getImm() << ":\n";
}
void AsmPrinter::printLabel(unsigned Id) const {
- O <<
"\n" <<
TAI->getPrivateGlobalPrefix() << "label" << Id << ":\n";
+ O << TAI->getPrivateGlobalPrefix() << "label" << Id << ":\n";
}
/// printDeclare - This method prints a local variable declaration used by
/// debug tables.
}
/// printDeclare - This method prints a local variable declaration used by
/// debug tables.
+/// FIXME: It doesn't really print anything rather it inserts a DebugVariable
+/// entry into dwarf table.
void AsmPrinter::printDeclare(const MachineInstr *MI) const {
void AsmPrinter::printDeclare(const MachineInstr *MI) const {
- O << "\n";
+ int FI = MI->getOperand(0).getIndex();
+ GlobalValue *GV = MI->getOperand(1).getGlobal();
+ MMI->RecordVariable(GV, FI);
}
/// PrintAsmOperand - Print the specified operand of MI, an INLINEASM
}
/// PrintAsmOperand - Print the specified operand of MI, an INLINEASM