mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Implement support for internal methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -320,6 +320,7 @@ void AssemblyWriter::printModule(const Module *M) {
|
||||
void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
||||
if (GV->hasName()) Out << "%" << GV->getName() << " = ";
|
||||
|
||||
if (GV->hasInternalLinkage()) Out << "internal ";
|
||||
if (!GV->hasInitializer()) Out << "uninitialized ";
|
||||
|
||||
Out << (GV->isConstant() ? "constant " : "global ");
|
||||
@@ -383,7 +384,8 @@ void AssemblyWriter::printConstant(const ConstPoolVal *CPV) {
|
||||
//
|
||||
void AssemblyWriter::printMethod(const Method *M) {
|
||||
// Print out the return type and name...
|
||||
Out << "\n" << (M->isExternal() ? "declare " : "");
|
||||
Out << "\n" << (M->isExternal() ? "declare " : "")
|
||||
<< (M->hasInternalLinkage() ? "internal " : "");
|
||||
printType(M->getReturnType()) << " \"" << M->getName() << "\"(";
|
||||
Table.incorporateMethod(M);
|
||||
|
||||
|
Reference in New Issue
Block a user