mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 09:51:19 +00:00
Make LLVM IR emission a bit more concise and readable. (#3078)
Provide LLVM IR names for named types, and not for unnamed types. Use shorter names for IR values.
This commit is contained in:
1 parent
2947877518
commit
927375f9c6
32 files changed
+202
-218
No files matched your search
@@ -10,8 +10,6 @@ fn Echo(a: {}) {
|
||||
// CHECK:STDOUT: ; ModuleID = 'empty_struct.carbon'
|
||||
// CHECK:STDOUT: source_filename = "empty_struct.carbon"
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: %StructLiteralType = type {}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: define void @Echo(%StructLiteralType %a) {
|
||||
// CHECK:STDOUT: define void @Echo({} %a) {
|
||||
// CHECK:STDOUT: ret void
|
||||
// CHECK:STDOUT: }
|
||||
Reference in new issue
Block a user