search for: hasappendinglinkag

Displaying 3 results from an estimated 3 matches for "hasappendinglinkag".

Did you mean: hasappendinglinkage
2014 Mar 10
2
[LLVMdev] GlobalValues appear in their own use lists?
...xternal, but doesn't have external or weak linkage!", &GV); + for (Value::const_use_iterator UI = GV.use_begin(), UE = GV.use_end(); + UI != UE; ++UI) { + Assert1(*UI != &GV, "Global values cannot be their own uses!", &GV); + } + Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), "Only global variables can have appending linkage!", &GV); – Is it ever reasonable for a global value to be its own use? If not, can I commit this patch? This really causes problems for LLDB in various parts of our logic, including inf...
2014 Mar 11
3
[LLVMdev] GlobalValues appear in their own use lists?
...xternal, but doesn't have external or weak linkage!", &GV); + for (Value::const_use_iterator UI = GV.use_begin(), UE = GV.use_end(); + UI != UE; ++UI) { + Assert1(*UI != &GV, "Global values cannot be their own uses!", &GV); + } + Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), "Only global variables can have appending linkage!", &GV); $ cat whatever.ll define i8 @foo() #0 { entry: %call0 = call i8 @bar() ret i8 %call0 } declare i8 @bar() #1 $ /Volumes/Excelion/lldb/llvm-build/Debug+Asserts/x86_64/Debug+...
2020 Feb 18
4
LLD doesn't handle globals with appending linkage
Hello. I'm posting this question here, because there seem to be no LLD-specific mailing list. Sorry in advance if this is wrong one. I compile two C source with following command: clang -flto -o %name.bc %name.c LLVM is augmented with my custom pass, which amongst other things create a global with appending linkage: @myvar = appending constant [1 x [1 x i8]*] ... I also have another pass