mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-27 02:51:23 -04:00
7fcef2bc4f
To the best of my knowledge -metarenamer is used in two cases: 1) obfuscate names, when e.g. they contain informations that can't be shared. 2) Improve clarity of the textual IR for testcases. One of the usecases if getting the output of `opt` and passing it to the lli interpreter to run the test. If metarenamer renames @main, lli can't find an entry point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309657 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
255 B
LLVM
16 lines
255 B
LLVM
; Make sure @main is left untouched.
|
|
; RUN: opt -metarenamer -S %s | FileCheck %s
|
|
|
|
; CHECK: define void @main
|
|
; CHECK: call void @main
|
|
|
|
define void @main() {
|
|
call void @patatino()
|
|
ret void
|
|
}
|
|
|
|
define void @patatino() {
|
|
call void @main()
|
|
ret void
|
|
}
|