Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(arc): add optional arg for filename in gscobj header #153

Merged
merged 4 commits into from
Oct 2, 2023
Merged

feat(arc): add optional arg for filename in gscobj header #153

merged 4 commits into from
Oct 2, 2023

Conversation

ineedbots
Copy link
Collaborator

Allows integrations of gsc-tool to pass the filename to the assembler.

@@ -25,7 +25,7 @@ class assembler

public:
assembler(context const* ctx);
auto assemble(assembly const& data) -> buffer;
auto assemble(assembly const& data, std::string const& string = "") -> buffer;
Copy link
Contributor

@diamante0018 diamante0018 Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty string should be initialized with empty braces rather than "" due to clang bug that was discovered by me and some other people.

llvm/llvm-project#64535
llvm/llvm-project#64536

@@ -25,7 +25,7 @@ class assembler

public:
assembler(context const* ctx);
auto assemble(assembly const& data) -> buffer;
auto assemble(assembly const& data, std::string const& string = {}) -> buffer;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename the parameter to a meaningful name, like 'name'

@xensik xensik merged commit 834e402 into xensik:dev Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants