Improve error message about incompatible function types.
When reporting that a function has illegally been overloaded only by return type, include "task", "export", and "extern "C"", as appropriate in the error message to make clear what the issue is. Finishes issue #216.
This commit is contained in:
2
type.h
2
type.h
@@ -776,6 +776,8 @@ public:
|
||||
|
||||
const Type *GetReturnType() const { return returnType; }
|
||||
|
||||
const std::string GetReturnTypeString() const;
|
||||
|
||||
/** This method returns the LLVM FunctionType that corresponds to this
|
||||
function type. The \c includeMask parameter indicates whether the
|
||||
llvm::FunctionType should have a mask as the last argument in its
|
||||
|
||||
Reference in New Issue
Block a user