Search in sources :

Example 1 with MDString

use of com.oracle.truffle.llvm.parser.metadata.MDString in project sulong by graalvm.

the class MDUpgrade method visit.

@Override
public void visit(MDCompileUnit md) {
    currentCU = md;
    if (md.getFile() instanceof MDString) {
        final MDFile fileRef = MDFile.create(md.getFile(), md.getDirectory());
        md.replace(md.getFile(), fileRef);
    }
    md.getSubprograms().accept(this);
    md.getGlobalVariables().accept(this);
    currentCU = null;
}
Also used : MDString(com.oracle.truffle.llvm.parser.metadata.MDString) MDFile(com.oracle.truffle.llvm.parser.metadata.MDFile)

Aggregations

MDFile (com.oracle.truffle.llvm.parser.metadata.MDFile)1 MDString (com.oracle.truffle.llvm.parser.metadata.MDString)1