Skip to content
  • Jakob Stoklund Olesen's avatar
    Include a source location when complaining about bad inline assembly. · 25a404eb
    Jakob Stoklund Olesen authored
    Add a MI->emitError() method that the backend can use to report errors
    related to inline assembly. Call it from X86FloatingPoint.cpp when the
    constraints are wrong.
    
    This enables proper clang diagnostics from the backend:
    
    $ clang -c pr30848.c
    pr30848.c:5:12: error: Inline asm output regs must be last on the x87 stack
      __asm__ ("" : "=u" (d));  /* { dg-error "output regs" } */
               ^
    1 error generated.
    
    llvm-svn: 134307
    25a404eb
Loading