llvm.org GIT mirror llvm / 8f59021
Fix redefinition of default argument, found by modules build. It's not entirely clear whether this should be valid with modules enabled, but the fixed code is cleaner regardless. Also fix a TU-local type that accidentally had external linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206714 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Smith 6 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1313 #include "CodeGenIntrinsics.h"
1414 #include "CodeGenTarget.h"
1515 #include "SequenceToOffsetTable.h"
16 #include "TableGenBackends.h"
1617 #include "llvm/ADT/StringExtras.h"
1718 #include "llvm/TableGen/Error.h"
1819 #include "llvm/TableGen/Record.h"
475476 OS << "#endif\n\n"; // End of GET_INTRINSIC_GENERATOR_GLOBAL
476477 }
477478
479 namespace {
478480 enum ModRefKind {
479481 MRK_none,
480482 MRK_readonly,
481483 MRK_readnone
482484 };
485 }
483486
484487 static ModRefKind getModRefKind(const CodeGenIntrinsic &intrinsic) {
485488 switch (intrinsic.ModRef) {
786789 OS << "#endif\n\n";
787790 }
788791
789 namespace llvm {
790
791 void EmitIntrinsics(RecordKeeper &RK, raw_ostream &OS, bool TargetOnly = false) {
792 void llvm::EmitIntrinsics(RecordKeeper &RK, raw_ostream &OS, bool TargetOnly) {
792793 IntrinsicEmitter(RK, TargetOnly).run(OS);
793794 }
794
795 } // End llvm namespace