String returns the string representation of the module in LLVM IR assembly syntax.
()
| 68 | // String returns the string representation of the module in LLVM IR assembly |
| 69 | // syntax. |
| 70 | func (m *Module) String() string { |
| 71 | buf := &strings.Builder{} |
| 72 | if _, err := m.WriteTo(buf); err != nil { |
| 73 | panic(fmt.Errorf("unable to write to string buffer; %v", err)) |
| 74 | } |
| 75 | return buf.String() |
| 76 | } |
| 77 | |
| 78 | // WriteTo write the string representation of the module in LLVM IR assembly |
| 79 | // syntax to w. |