summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-24 04:13:11 +0000
committerChris Lattner <sabre@nondot.org>2006-01-24 04:13:11 +0000
commiteef2fe72c0096ab06533d77cf95b05ae35c7909e (patch)
tree13db07908f32ee52d3ceab8844d1c385c96b10ac /llvm/lib/VMCore/AsmWriter.cpp
parent3e65f28ffe7654f2823f8454d3f7ea7241c3f61a (diff)
downloadbcm5719-llvm-eef2fe72c0096ab06533d77cf95b05ae35c7909e.tar.gz
bcm5719-llvm-eef2fe72c0096ab06533d77cf95b05ae35c7909e.zip
Initial checkin of the InlineAsm class
llvm-svn: 25570
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index d0b8478f24c..c6a3845a07f 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -775,9 +775,9 @@ void AssemblyWriter::printModule(const Module *M) {
if (!M->getTargetTriple().empty())
Out << "target triple = \"" << M->getTargetTriple() << "\"\n";
- if (!M->getInlineAsm().empty()) {
+ if (!M->getModuleInlineAsm().empty()) {
// Split the string into lines, to make it easier to read the .ll file.
- std::string Asm = M->getInlineAsm();
+ std::string Asm = M->getModuleInlineAsm();
size_t CurPos = 0;
size_t NewLine = Asm.find_first_of('\n', CurPos);
while (NewLine != std::string::npos) {
@@ -1269,6 +1269,14 @@ void Function::print(std::ostream &o, AssemblyAnnotationWriter *AAW) const {
W.write(this);
}
+void InlineAsm::print(std::ostream &o, AssemblyAnnotationWriter *AAW) const {
+ SlotMachine SlotTable(getParent());
+ AssemblyWriter W(o, SlotTable, getParent(), AAW);
+
+ assert(0 && "Inline asm printing unimplemented!");
+ //W.write(this);
+}
+
void BasicBlock::print(std::ostream &o, AssemblyAnnotationWriter *AAW) const {
SlotMachine SlotTable(getParent());
AssemblyWriter W(o, SlotTable,
OpenPOWER on IntegriCloud