- unsigned Length = 0, Size = 0, Type = 0;
- if (const MCSymbolRefExpr *SymRef = dyn_cast<MCSymbolRefExpr>(Val)) {
- const MCSymbol &Sym = SymRef->getSymbol();
- // FIXME: The SemaLookup will fail if the name is anything other then an
- // identifier.
- // FIXME: Pass a valid SMLoc.
- bool IsVarDecl;
- if (!SemaCallback->LookupInlineAsmIdentifier(Sym.getName(), NULL, Length,
- Size, Type, IsVarDecl))
- // FIXME: We don't warn on variables with namespace alias qualifiers
- // because support still needs to be added in the frontend.
- if (Identifier.equals(StartTok.getString()))
- return ErrorOperand(Start, "Unable to lookup expr!");
- }
- unsigned CVal;