mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Define a function with "... llvm::func...".
Using this instead of namespace llvm { func... } Has the advantage that the build fails with a compiler error if it gets out of sync with the .h file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1073,9 +1073,8 @@ void MCWinCOFFObjectTargetWriter::anchor() {}
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// WinCOFFObjectWriter factory function
|
// WinCOFFObjectWriter factory function
|
||||||
|
|
||||||
namespace llvm {
|
MCObjectWriter *
|
||||||
MCObjectWriter *createWinCOFFObjectWriter(MCWinCOFFObjectTargetWriter *MOTW,
|
llvm::createWinCOFFObjectWriter(MCWinCOFFObjectTargetWriter *MOTW,
|
||||||
raw_ostream &OS) {
|
raw_ostream &OS) {
|
||||||
return new WinCOFFObjectWriter(MOTW, OS);
|
return new WinCOFFObjectWriter(MOTW, OS);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user