mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-06 11:59:02 +02:00
Removed long obsolete (and broken) LLVM IR annotation code.
If someone wants to redo this properly, an idea that actually works would be to use a custom llvm::AssemblyAnnotationWriter.
This commit is contained in:
@@ -1548,24 +1548,6 @@ LLConstant* DtoConstExpInit(Loc loc, Type* type, Expression* exp)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void DtoAnnotation(const char* str)
|
||||
{
|
||||
std::string s("CODE: ");
|
||||
s.append(str);
|
||||
char* p = &s[0];
|
||||
while (*p)
|
||||
{
|
||||
if (*p == '"')
|
||||
*p = '\'';
|
||||
++p;
|
||||
}
|
||||
// create a noop with the code as the result name!
|
||||
// FIXME: this is const folded and eliminated immediately ... :/
|
||||
gIR->ir->CreateAnd(DtoConstSize_t(0),DtoConstSize_t(0),s.c_str());
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LLConstant* DtoTypeInfoOf(Type* type, bool base)
|
||||
{
|
||||
type = type->merge2(); // needed.. getTypeInfo does the same
|
||||
|
||||
Reference in New Issue
Block a user