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

Fix handling of literals of anonymous enum types #2364

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

keithc-ca
Copy link
Contributor

@keithc-ca keithc-ca commented Mar 8, 2018

Fix

  • promote _enumMembers from ClassType to NamespaceUDT
  • collect literals of a nested anonymous enum in enclosing namespace

Cleanup

  • change signature of Type::getSymbolKindName()
  • check that IO operations are successful
  • remove unnecessary #include directives
  • remove useless method TypedefUDT::insertUnique()
  • manage printing type header in JavaSupersetGenerator
  • extract common code for visiting class and union types

Addition

  • add TypePrinter for debugging (currently disabled)

This should be the final OMR change required to enable eclipse-openj9/openj9#378 on Linux.

Fix
* promote _enumMembers from ClassType to NamespaceUDT
* collect literals of a nested anonymous enum in enclosing namespace

Cleanup
* change signature of Type::getSymbolKindName()
* check that IO operations are successful
* remove unnecessary #include directives
* remove useless method TypedefUDT::insertUnique()
* manage printing type header in JavaSupersetGenerator
* extract common code for visiting class and union types

Addition
* add TypePrinter for debugging (currently disabled)

Signed-off-by: Keith W. Campbell <[email protected]>
@charliegracie
Copy link
Contributor

@genie-omr build all

1 similar comment
@charliegracie
Copy link
Contributor

@genie-omr build all

TypePrinter::printIndent() const
{
for (int32_t i = _indent; i > 0; --i) {
printf(" ");
Copy link
Contributor

Choose a reason for hiding this comment

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

Only question is should we be using the PortLibrary tty_printf instead of printf in this class and ddrgen.cpp?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps that would be better, but this is only a debugging aid.

@charliegracie charliegracie merged commit 5cbbadf into eclipse-omr:master Mar 8, 2018
@keithc-ca keithc-ca deleted the ddr-literals branch March 8, 2018 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants