diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-06-14 05:04:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-06-14 05:04:04 +0000 |
commit | c789c04510686b3e3d93cbbf9c7c2c4488c47393 (patch) | |
tree | 45d5a6f799b61a89d1720abb26690ee603b68c73 /gcc | |
parent | d71ec0cdd63030fe9fb9aa5bf704970771f1cb50 (diff) | |
download | gcc-c789c04510686b3e3d93cbbf9c7c2c4488c47393.zip gcc-c789c04510686b3e3d93cbbf9c7c2c4488c47393.tar.gz gcc-c789c04510686b3e3d93cbbf9c7c2c4488c47393.tar.bz2 |
compiler, reflect: Quote package path with tabs.
From-SVN: r188548
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index ff6b5bd..228f3fa 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -8340,16 +8340,16 @@ Named_type::do_reflection(Gogo* gogo, std::string* ret) const // -fgo-pkgpath was introduced. When -fgo-pkgpath is specified, // we use it to make a unique reflection string, so that the // type canonicalization in the reflect package will work. In - // order to be compatible with the gc compiler, we quote the - // package path, so that the reflect methods can discard it. + // order to be compatible with the gc compiler, we put tabs into + // the package path, so that the reflect methods can discard it. const Package* package = this->named_object_->package(); if (gogo->pkgpath_from_option()) { - ret->push_back('"'); + ret->push_back('\t'); ret->append(package != NULL ? package->pkgpath_symbol() : gogo->pkgpath_symbol()); - ret->push_back('"'); + ret->push_back('\t'); } ret->append(package != NULL ? package->package_name() |