mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	add another helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -343,6 +343,12 @@ namespace llvm { | |||||||
|     /// value. |     /// value. | ||||||
|     MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV) const; |     MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV) const; | ||||||
|  |  | ||||||
|  |     /// GetPrivateGlobalValueSymbolStub - Return the MCSymbol for a symbol with | ||||||
|  |     /// global value name as its base, with the specified suffix, and where the | ||||||
|  |     /// symbol is forced to have private linkage. | ||||||
|  |     MCSymbol *GetPrivateGlobalValueSymbolStub(const GlobalValue *GV, | ||||||
|  |                                               StringRef Suffix) const; | ||||||
|  |      | ||||||
|     /// GetExternalSymbolSymbol - Return the MCSymbol for the specified |     /// GetExternalSymbolSymbol - Return the MCSymbol for the specified | ||||||
|     /// ExternalSymbol. |     /// ExternalSymbol. | ||||||
|     MCSymbol *GetExternalSymbolSymbol(StringRef Sym) const; |     MCSymbol *GetExternalSymbolSymbol(StringRef Sym) const; | ||||||
|   | |||||||
| @@ -1706,6 +1706,17 @@ MCSymbol *AsmPrinter::GetGlobalValueSymbol(const GlobalValue *GV) const { | |||||||
|   return OutContext.GetOrCreateSymbol(NameStr.str()); |   return OutContext.GetOrCreateSymbol(NameStr.str()); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | /// GetPrivateGlobalValueSymbolStub - Return the MCSymbol for a symbol with | ||||||
|  | /// global value name as its base, with the specified suffix, and where the | ||||||
|  | /// symbol is forced to have private linkage. | ||||||
|  | MCSymbol *AsmPrinter::GetPrivateGlobalValueSymbolStub(const GlobalValue *GV, | ||||||
|  |                                                       StringRef Suffix) const { | ||||||
|  |   SmallString<60> NameStr; | ||||||
|  |   Mang->getNameWithPrefix(NameStr, GV, true); | ||||||
|  |   NameStr.append(Suffix.begin(), Suffix.end()); | ||||||
|  |   return OutContext.GetOrCreateSymbol(NameStr.str()); | ||||||
|  | } | ||||||
|  |  | ||||||
| /// GetExternalSymbolSymbol - Return the MCSymbol for the specified | /// GetExternalSymbolSymbol - Return the MCSymbol for the specified | ||||||
| /// ExternalSymbol. | /// ExternalSymbol. | ||||||
| MCSymbol *AsmPrinter::GetExternalSymbolSymbol(StringRef Sym) const { | MCSymbol *AsmPrinter::GetExternalSymbolSymbol(StringRef Sym) const { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user