This patch is intended to solve the following FIXME in ARMAsmParser::parseDirectiveThumbFunc:
// FIXME: assuming function name will be the line following .thumb_func // We really should be checking the next symbol definition even if there's // stuff in between.
I didn't add any new test just modified the existing one by moving the .type directive between the .thumb_func directive
and the actual symbol (you can check it in the diff). This is how GCC places the directives (at least it did it for me when
I compiled a simple "Hello world!" C program to assembly code).
Very minor point: variable names should start with a capital letter in LLVM.