Skip to content

Commit 3e64a25

Browse files
authored
Change .ir file extension to .ll (PLC-lang#825)
1 parent 2f37dc3 commit 3e64a25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**/*.rs.bk
55
**/*.un~
66
**/*.toml~
7-
*.ir
7+
*.ll
88
*.o
99
*.bc
1010
*.a

src/cli.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ mod cli_tests {
344344
#[test]
345345
fn test_default_output_names() {
346346
let parameters = CompileParameters::parse(vec_of_strings!("alpha.st", "--ir")).unwrap();
347-
assert_eq!(parameters.output_name(), "alpha.ir".to_string());
347+
assert_eq!(parameters.output_name(), "alpha.ll".to_string());
348348

349349
let parameters = CompileParameters::parse(vec_of_strings!("bravo", "--shared")).unwrap();
350350
assert_eq!(parameters.output_name(), "bravo.so".to_string());

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ pub fn get_output_name(output_name: Option<&str>, out_format: FormatOption, inpu
11121112
FormatOption::Relocatable => ".o",
11131113
FormatOption::Object => ".o",
11141114
FormatOption::Shared | FormatOption::PIC => ".so",
1115-
FormatOption::IR => ".ir",
1115+
FormatOption::IR => ".ll",
11161116
FormatOption::Static | FormatOption::None => "",
11171117
};
11181118
format!("{input}{ending}")

0 commit comments

Comments
 (0)